import pandas as pd
import plotly.express as px

import config
import load_fred
import pca_index

import pandas_datareader

DATA_DIR = config.DATA_DIR

import warnings
warnings.filterwarnings("ignore")

S&P 500#

df = pandas_datareader.get_data_fred('SP500', start='1970-01-01')

fig = px.line(df)
fig.show()

PCA Index Dashboard Examples#

This script was last run at 2024-03-22 10:12:47.554618+00:00 (UTC)
In US/Central Time, this is 2024-03-22 05:12:47.554618-05:00
../_images/70b0d9809ab7cd2b6f893143cd01c1fa7d2ef34b98162cbb5592ed3a79589e5a.png
../_images/fa14b8c98de85df122a8ee0424f277e929419156231a4c7091d2837ab01a78a7.png